import request from '@/utils/request'
import { WebCount, WebInfo } from '@/types/webInfo'

/**
 * 获取网站配置
 * @returns
 */
export const queryWebInfo = (): ResponseResult<WebInfo> =>
  request({
    url: `${import.meta.env.VITE_APP_BASE_API}/webInfo`,
    method: 'GET'
  })
/**
 * 获取网站配置
 * @returns
 */
export const queryWebCount = (): ResponseResult<WebCount> =>
  request({
    url: `${import.meta.env.VITE_APP_BASE_API}/webInfo/countInfo`,
    method: 'GET'
  })
